<template>
    <div class="index" style="height: 1000px;">
		首页
		<FooterBar>
			<button @click="handleLogout">退出登录</button>
		</FooterBar>
    </div>
</template>

<script>
import Cookies from 'js-cookie';
import FooterBar from '@/components/FooterBar.vue';
export default {
	components: {
		FooterBar
	},
    methods: {
        handleLogout() {
        	Cookies.remove('token');
			this.$router.push({name: 'login'});
        }
    }
}
</script>

<style scoped lang="less">
    
</style>